﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LoginMenuShow : MonoBehaviour {

   
	public GameObject moveAobject;
	public Transform targetAPoint;
	public GameObject buttonpanel;
	// Use this for initialization
	void Start () {

        SceneLoadManager.Instance.TestFunc();
        BattleCreateManager.Instance.TestFunc();
        GameDataManager.Instance.TestFunc();
        iTween.MoveTo(moveAobject, targetAPoint.position, 2f);
		StartCoroutine(WaitShowMenu());
	}
	
	IEnumerator WaitShowMenu()
	{
		yield return new WaitForSeconds(2.1f);
		buttonpanel.SetActive(true);
	}

	
    public void LoadGameScene()
    {
        SceneLoadManager.Instance.LoadNext("拉多村2楼");
    }

    public void QuitGame()
    {
        Application.Quit();
    }

}
